<?php
/**
 * ExtTextField class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtTextField extends ExtField
{
    /**
     * Gets the value of ExtJS allowBlank property
     * @return Boolean 
     */
    public function getAllowBlank()
    {
    	return $this->getConfig("allowblank");
    }

    /**
     * Sets the value of ExtJS allowBlank property
     * @param Boolean $value 
     */
    public function setAllowBlank($value)
    {
    	$this->setConfig("allowblank",$value);
    }

    /**
     * Gets the value of ExtJS blankText property
     * @return String 
     */
    public function getBlankText()
    {
    	return $this->getConfig("blanktext");
    }

    /**
     * Sets the value of ExtJS blankText property
     * @param String $value 
     */
    public function setBlankText($value)
    {
    	$this->setConfig("blanktext",$value);
    }

    /**
     * Gets the value of ExtJS disableKeyFilter property
     * @return Boolean 
     */
    public function getDisableKeyFilter()
    {
    	return $this->getConfig("disablekeyfilter");
    }

    /**
     * Sets the value of ExtJS disableKeyFilter property
     * @param Boolean $value 
     */
    public function setDisableKeyFilter($value)
    {
    	$this->setConfig("disablekeyfilter",$value);
    }

    /**
     * Gets the value of ExtJS emptyClass property
     * @return String 
     */
    public function getEmptyClass()
    {
    	return $this->getConfig("emptyclass");
    }

    /**
     * Sets the value of ExtJS emptyClass property
     * @param String $value 
     */
    public function setEmptyClass($value)
    {
    	$this->setConfig("emptyclass",$value);
    }

    /**
     * Gets the value of ExtJS emptyText property
     * @return String 
     */
    public function getEmptyText()
    {
    	return $this->getConfig("emptytext");
    }

    /**
     * Sets the value of ExtJS emptyText property
     * @param String $value 
     */
    public function setEmptyText($value)
    {
    	$this->setConfig("emptytext",$value);
    }

    /**
     * Gets the value of ExtJS enableKeyEvents property
     * @return Boolean 
     */
    public function getEnableKeyEvents()
    {
    	return $this->getConfig("enablekeyevents");
    }

    /**
     * Sets the value of ExtJS enableKeyEvents property
     * @param Boolean $value 
     */
    public function setEnableKeyEvents($value)
    {
    	$this->setConfig("enablekeyevents",$value);
    }

    /**
     * Gets the value of ExtJS grow property
     * @return Boolean 
     */
    public function getGrow()
    {
    	return $this->getConfig("grow");
    }

    /**
     * Sets the value of ExtJS grow property
     * @param Boolean $value 
     */
    public function setGrow($value)
    {
    	$this->setConfig("grow",$value);
    }

    /**
     * Gets the value of ExtJS growMax property
     * @return Number 
     */
    public function getGrowMax()
    {
    	return $this->getConfig("growmax");
    }

    /**
     * Sets the value of ExtJS growMax property
     * @param Number $value 
     */
    public function setGrowMax($value)
    {
    	$this->setConfig("growmax",$value);
    }

    /**
     * Gets the value of ExtJS growMin property
     * @return Number 
     */
    public function getGrowMin()
    {
    	return $this->getConfig("growmin");
    }

    /**
     * Sets the value of ExtJS growMin property
     * @param Number $value 
     */
    public function setGrowMin($value)
    {
    	$this->setConfig("growmin",$value);
    }

    /**
     * Gets the value of ExtJS maxLength property
     * @return Number 
     */
    public function getMaxLength()
    {
    	return $this->getConfig("maxlength");
    }

    /**
     * Sets the value of ExtJS maxLength property
     * @param Number $value 
     */
    public function setMaxLength($value)
    {
    	$this->setConfig("maxlength",$value);
    }

    /**
     * Gets the value of ExtJS maxLengthText property
     * @return String 
     */
    public function getMaxLengthText()
    {
    	return $this->getConfig("maxlengthtext");
    }

    /**
     * Sets the value of ExtJS maxLengthText property
     * @param String $value 
     */
    public function setMaxLengthText($value)
    {
    	$this->setConfig("maxlengthtext",$value);
    }

    /**
     * Gets the value of ExtJS minLength property
     * @return Number 
     */
    public function getMinLength()
    {
    	return $this->getConfig("minlength");
    }

    /**
     * Sets the value of ExtJS minLength property
     * @param Number $value 
     */
    public function setMinLength($value)
    {
    	$this->setConfig("minlength",$value);
    }

    /**
     * Gets the value of ExtJS minLengthText property
     * @return String 
     */
    public function getMinLengthText()
    {
    	return $this->getConfig("minlengthtext");
    }

    /**
     * Sets the value of ExtJS minLengthText property
     * @param String $value 
     */
    public function setMinLengthText($value)
    {
    	$this->setConfig("minlengthtext",$value);
    }

    /**
     * Gets the value of ExtJS selectOnFocus property
     * @return Boolean 
     */
    public function getSelectOnFocus()
    {
    	return $this->getConfig("selectonfocus");
    }

    /**
     * Sets the value of ExtJS selectOnFocus property
     * @param Boolean $value 
     */
    public function setSelectOnFocus($value)
    {
    	$this->setConfig("selectonfocus",$value);
    }

    /**
     * Gets the value of ExtJS validator property
     * @return Function 
     */
    public function getValidator()
    {
    	return $this->getConfig("validator");
    }

    /**
     * Sets the value of ExtJS validator property
     * @param Function $value 
     */
    public function setValidator($value)
    {
    	$this->setConfig("validator",$value);
    }

    /**
     * Gets the value of ExtJS vtype property
     * @return String 
     */
    public function getVtype()
    {
    	return $this->getConfig("vtype");
    }

    /**
     * Sets the value of ExtJS vtype property
     * @param String $value 
     */
    public function setVtype($value)
    {
    	$this->setConfig("vtype",$value);
    }

    /**
     * Gets the value of ExtJS vtypeText property
     * @return String 
     */
    public function getVtypeText()
    {
    	return $this->getConfig("vtypetext");
    }

    /**
     * Sets the value of ExtJS vtypeText property
     * @param String $value 
     */
    public function setVtypeText($value)
    {
    	$this->setConfig("vtypetext",$value);
    }

    /**
     * Gets the value of ExtJS initialPasswordField property
     * @return String 
     */
    public function getInitialPasswordField()
    {
    	return $this->getConfig("initialpasswordfield");
    }

    /**
     * Sets the value of ExtJS initialPasswordField property
     * @param String $value 
     */
    public function setInitialPasswordField($value)
    {
    	$this->setConfig("initialpasswordfield",$value);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'allowblank' => 'allowBlank',
            'blanktext' => 'blankText',
            'disablekeyfilter' => 'disableKeyFilter',
            'emptyclass' => 'emptyClass',
            'emptytext' => 'emptyText',
            'enablekeyevents' => 'enableKeyEvents',
            'growmax' => 'growMax',
            'growmin' => 'growMin',
            'maxlength' => 'maxLength',
            'maxlengthtext' => 'maxLengthText',
            'minlength' => 'minLength',
            'minlengthtext' => 'minLengthText',
            'selectonfocus' => 'selectOnFocus',
            'vtypetext' => 'vtypeText',
            'initialpasswordfield' => 'initialPasswordField'
        ));

        $this->eventtable = array_merge($this->eventtable,array(
            'autosize' => array('sender','width'),
            'keydown' => array('sender','e'),
            'keypress' => array('sender','e'),
            'keyup' => array('sender','e')
        ));

        $this->jsconfigs = array_merge($this->jsconfigs,array(
            'validator' => true
        ));

        $this->setXType('textfield');
        $this->setXClass('Ext.form.TextField');
    }    
}
?>